#ifndef _GLOBAL_H_
#define _GLOBAL_H_
#include "python3/PythonGrammar30TreeConstants.h"
#include "ast/stmtType.h"
#include "ast/exprType.h"
#include "ast/NameTok.h"
class IVisitor;
class Global;
typedef QSharedPointer<Global> GlobalPtr;

class Global: public stmtType
{
public:
    explicit Global(const NameTokList& names, const exprTypePtr& value, int nodeId=JJTGLOBAL_STMT);
    virtual ~Global();
    
    
    NameTokList names();
    void setNames(const NameTokList& names);
    
    exprTypePtr value();
    void setValue(const exprTypePtr& value);
    
    
    virtual QString type() const;
    virtual QString toString() const;
    virtual void accept(IVisitor* visitor, const SimpleNodePtr& node);
    virtual void traverse(IVisitor* visitor);
private:
    NameTokList _names;
    exprTypePtr _value;
};




#endif